import Vue from 'vue'
import Router from 'vue-router'
import Main from '@/components/main'
import Block from '@/components/block'
import Address from '@/components/address'
import Exterinsics from '@/components/extrinsics'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Main',
      component: Main
    }, {
      path: '/blocks/:block_index',
      name: 'Block',
      component: Block
    }, {
      path: '/address/:address',
      name: 'Address',
      component: Address
    }, {
      path: '/exterinsics/:hash',
      name: 'Exterinsics',
      component: Exterinsics
    }, {
      path: '/exterinsics/:hash/:id',
      name: 'Exterinsics',
      component: Exterinsics
    }
  ]
})
